import socket
def check_Internet():
    try:
        socket.gethostbyaddr("119.29.29.29")
        return True
    except:
        return  False



if __name__ == '__main__':
  if check_Internet() == True:
      print("网络正常")
  else:
      print("网络异常")